<div class="grid_4">
	<div class="da-panel collapsible">	
		<form id="form_list_user" action="<?php echo ROOT_URL.$this->url(array('controller'=>'comment','action'=>'deletemulti','module'=>'admin'),null,true)?>" method="post">
			<div class="da-panel-header">
				<span class="da-panel-title"> <img
					src="images/icons/black/16/list.png" alt="" />List Comment <a
					style="float: right; margin-right: 10px"
					href="<?php echo ROOT_URL.$this->url(array('controller'=>'comment','action'=>'create','module'=>'admin'),null,true)?>"
					class="da-button green">Create new comment</a>
					<a id="delete_multi_member"
					style="float: right; margin-right: 10px"
					href="#" class="da-button green">Delete seleted</a>
				</span>
			</div>
			<div class="da-panel-content">
				<table id="da-ex-datatable-numberpaging" class="da-table">
					<thead>
						<tr>
							<th></th>
							<th><b>Title</b></th>
							<th><b>Created by</b></th>
							<th><b>Created date</b></th>
							<th><b>Status</b></th>
							<th><b>Options</b></th>
						</tr>
					</thead>
					
					<tbody>
						<?php if(count($this->Comments)>0){?>
							<?php foreach ($this->Comments as $key=>$Comment){?>
								<tr>
									<td><input type="checkbox" name="comments[]" value="<?php echo $Comment->id;?>"/></td>
									<td><?php echo $Comment->content;?></td>
									<td><?php echo $Comment->Member->username;?></td>
									<td><?php echo date('Y-m-d H:i:s',strtotime($Comment->created_date))?></td>
									<td><?php echo ($Comment->status==1) ? 'Enabled' : 'Disabled'?></td>
									<td class="da-icon-column"><a
										href="<?php echo ROOT_URL.$this->url(array('controller'=>'comment','action'=>'edit','module'=>'admin','id'=>$Comment->id),null,true)?>"><img
											src="<?php echo TEMPLATE_URL?>/admin/images/icons/color/pencil.png" /></a>
										<a class='da-ex-dialog-form-member' href="<?php echo ROOT_URL.$this->url(array('controller'=>'ajax','action'=>'getarticle','module'=>'admin','id'=>$Comment->id),null,true)?>"><img
											src="<?php echo TEMPLATE_URL?>/admin/images/icons/color/cross.png" /></a>
									</td>
								</tr>
							<?php }?>
						<?php }?>
					</tbody>
				</table>
			</div>
		</form>
	</div>
</div>
<div id="da-ex-dialog-form-div-member" class="no-padding">
	<form id="da-ex-dialog-form-val-member" class="da-form" action="<?php echo ROOT_URL.$this->url(array('controller'=>'article','action'=>'delete','module'=>'admin'),null,true)?>" method="post">
		<div id="da-validate-error" class="da-message error"
			style="display: none;"></div>
		<div class="da-form-inline">
			<div class="da-form-row">
				<p>Are you want to delete comment "<span id="comment_label"></span>"</p>
				<input type="hidden" name="comment_id" value=""/>
			</div>
		</div>
	</form>
</div>